package com.fbs.job.admin.mapper;

import com.fbs.job.admin.core.entity.FbsJobInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 描述： Mapper
* @author wwd
* @date 2024-01-31 14:08:16
*/
@Mapper
public interface FbsJobInfoMapper  {

     List<FbsJobInfo> pageList(@Param("offset") int offset,
                                     @Param("pagesize") int pagesize,
                                     @Param("jobActuator") int jobActuator,
                                     @Param("triggerStatus") int triggerStatus,
                                     @Param("jobDesc") String jobDesc,
                                     @Param("executorHandler") String executorHandler,
                                     @Param("author") String author);
     int pageListCount(@Param("offset") int offset,
                             @Param("pagesize") int pagesize,
                             @Param("jobActuator") int jobActuator,
                             @Param("triggerStatus") int triggerStatus,
                             @Param("jobDesc") String jobDesc,
                             @Param("executorHandler") String executorHandler,
                             @Param("author") String author);

     FbsJobInfo getById(@Param("id") int id);

     int save(FbsJobInfo jobInfo);

    List<FbsJobInfo> scheduleJobQuery(@Param("maxNextTime") long maxNextTime, @Param("pagesize") int pagesize );

    int scheduleUpdate(FbsJobInfo jobInfo);

    int update(FbsJobInfo xxlJobInfo);

    int findAllCount();

    int delete(@Param("id") long id);
}
